function VerifMail()
{
	var log = document.getElementById("mail").value
	if( (log.length < 5) || (log.indexOf("@") == -1) || (log.indexOf(".") == -1))
	{
		document.getElementById("mailTrue").style.display = 'none';
		document.getElementById("mailFalse").style.display = 'block';
	}
	else
	{
		document.getElementById("mailTrue").style.display = 'block';
		document.getElementById("mailFalse").style.display = 'none';
	}
}

function VerifNoVide(log) {
	if(log.value.length == 0)
	{
		document.getElementById(log.name + "True").style.display = 'none';
		document.getElementById(log.name + "False").style.display = 'block';
	}
	else
	{	
		document.getElementById(log.name + "True").style.display = 'block';
		document.getElementById(log.name + "False").style.display = 'none';
	}
}

function Verif(formulaire) {
	
	VerifMail();
	VerifNoVide(document.getElementById("objet"));
	VerifNoVide(document.getElementById("message"));
	
	if( (document.getElementById("mailTrue").style.display == 'block') && (document.getElementById("objetTrue").style.display == 'block') && (document.getElementById("messageTrue").style.display == 'block') )
	{
		alert("Votre Message a \u00E9t\u00E9 envoy\u00E9");
		/*formulaire.submit();*/
	}
}
